/**
 * 文件
 */
(function(hybrid){

    hybrid.file = {

        /**
         * 文件上传
         * @param options
         * @param callback
         */
        upload: function(options, callback){
            options = hybrid.utils.extend({
                file: ""
            }, options);
            hybrid.callAction('File/upload', options, function(result){
                typeof callback === 'function' && callback(result.status, result.data);
            });
        }
    }

})(Hybrid || {});
